package com.rla.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.rla.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户储值记录明细对象 vip_user_balance_detail
 *
 * @author rla
 * @date 2025-08-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("vip_user_balance_detail")
public class VipUserBalanceDetail extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id")
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 变动类型（0、消费，1、退款，2、充值）
     */
    private String balanceType;
    /**
     * 变动金额
     */
    private BigDecimal changeAmount;
    /**
     * 变动时间
     */
    private Date changeTime;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private String delFlag;
    /**
     * 编号
     */
    private String detailCode;
    /**
     * $column.columnComment
     */
    private Date fgcCreatedate;
    /**
     * $column.columnComment
     */
    private String fgcLastmodifier;
    /**
     * $column.columnComment
     */
    private Date fgcLastmodifydate;
    /**
     * $column.columnComment
     */
    private String fgcCreator;

    private String vipLevel;

    private BigDecimal beforeBalance;
    private BigDecimal afterBalance;

}
